﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("调拨单")]
    [Table("t_allotvoucherdetail")]
    [Index(nameof(VoucherCode))]
    public class AllotVoucherDetail : VoucherDetailBase
    {
        public AllotVoucherDetail(Guid keyId)

        {
            this.Id = keyId;
        }

        public AllotVoucherDetail()
        {

        }
        [Comment("调拨数量")]
        [Column(TypeName = "decimal(10,4)")]
        public decimal AllotCount { get; set; }

        [Comment("条形码")]
        [MaxLength(100)]
        public string BarCode { get; set; }

        [Comment("唯一码(高值耗材专用)")]
        [MaxLength(100)]
        public string OnlyBarCode { get; set; }

        [Comment("UDI编码(高值耗材专用)")]
        [MaxLength(200)]
        public string UdiCode { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        [Comment("供应商ID")]
        public Guid SupplierId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        [Comment("供应商名称")]
        [MaxLength(200)]
        public string SupplierName { get; set; }

    }
}
